package com.ts.feign.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ts.feign.dto.PostDTO;
import com.ts.feign.vo.PostVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "ts-content",path = "/post",contextId = "post")
public interface PostService {

    @PostMapping("/list")
    public Page<PostVo> list(@RequestBody Page<PostVo> page);

    @PostMapping("/save")
    public void save(@RequestBody PostDTO postDTO);
}
